<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<% String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; 
%> 
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<jsp:include page="Left.jsp"></jsp:include>
<br/><br/><br/>
<a href='TbProductTypeServlet?method=showadd'><img src="./images/button-add.gif" border="0"/></a><br/>
<table>
<tr>
    <td>序号</td>
    <td>类型名称</td>
    <td>父级类型</td>
    <td>类型备注</td>
    <td>修改</td>
    <td>删除</td>
</tr>
<c:forEach items="${sessionScope.tbProductTypeList==null?'':sessionScope.tbProductTypeList}" var="tbProductType" varStatus="status">
<tr>
    <td>&nbsp;${status.index+1}</td>
    <td>${tbProductType.productTypeName}</td>
    <td>${tbProductType.tbProductTypeParent==null?' 无 ' :tbProductType.tbProductTypeParent.productTypeName}</td>
    <td><a title="${tbProductType.productTypeMemo}">${fn:substring(tbProductType.productTypeMemo,0,20 )} </a></td>
    <td><a href='TbProductTypeServlet?method=listById&productTypeId=${tbProductType.productTypeId}'>修改</a></td>
    <td><a href='TbProductTypeServlet?method=del&delIds=${tbProductType.productTypeId}'>删除</a></td>
</tr>
</c:forEach>
</table>
<jsp:include page="../foot.jsp"></jsp:include>
</body></html>